<%= content_for :css do %>
	<%= stylesheet_link_tag '/assets/admin'%>
<% end %>
<div id="orinfo">
	<%= link_to 'Home', root_path %> >
	<%= link_to 'Admin', welcome_admin_path %> >
	New Event
</div>
<h1> New Event </h1>

<div id="adminForm">
<%= form_for :event, url: events_path do |e| %>
	<p>
		<%= e.label :name %> <br>
		<%= e.text_field :name %>
	</p>
	
	<p>
		<%= e.label :date %> (YYYY-MM-DD) <br>
		<%= e.text_field :date %>
	</p>
	
	<p>
		<%= e.label :description %> <br>
		<%= e.text_area :description %>
	</p>
	
	<p>
		<%= e.label :schedule %> <br>
		<%= e.text_area :schedule %>
	</p>
	
	<p>
		<%= e.label :img_src %> <br>
		<%= e.text_field :img_src %>
	</p>
	
	<p>
		<%= e.label :preview_img_src %> <br>
		<%= e.text_field :preview_img_src %>
	</p>
	
	<p>
		<%= e.check_box :best %> <%= e.label :best %>
	</p>
	
	<p>
		<%= e.submit class: 'submit' %>
	</p>
<% end %>
</div>
